<?php

namespace IDock\Insurance\MACN\Request;

use IDock\Insurance\MACN\Response\VehicleModelResponse;
use IDock\Visitor\VehicleModelVisitor;

class VehicleModelRequest extends AllMACNRequest
{
    protected $requestType = '0011';

    protected $response = VehicleModelResponse::class;

    protected $urlTip = '车型查询接口';
    /**
     * @var  VehicleModelVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'baseInfo' => [
                'companyCode' => $this->visitor->argc['companyCode'] ?? '',
            ],
            'vehicleQuery' => [
                'modelCName' => $this->visitor->vehicleModel,
                'guildModelCode' => '',
                'singeinDate' => $this->visitor->firstRegisterDate,
                'vin' => $this->visitor->vin,
                'plateNum' => $this->visitor->licenseNo,
                'engineNum' => $this->visitor->engineNo,
            ],
        ];
    }
}
